package com.mbyte.easy.studentInfo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.mbyte.easy.common.entity.BaseEntity;
import com.mbyte.easy.qcbyclass.entity.QcbyClass;
import com.mbyte.easy.status.entity.Status;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lp
 * @since 2020-06-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class TStudent extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户的id，对应t_user表的id
     */
    private Long userId;
    /*
    学号，对应user表中的用户名
     */
    @TableField(exist = false)
    private String username;
    /**
     * 班级id，对应t_class表的id
     */
    private Long classId;
    @TableField(exist = false)
    private String className;

    /**
     * 姓名
     */
    private String name;
    /*
     性别
     */
    @TableField(exist = false)
    private Integer sexType;

    public Integer getSexType() {
        return sexType;
    }

    public void setSexType(Integer sexType) {
        this.sexType = sexType;
    }

    /**
     * 已修改，代表状态
     */
    private Integer sex;
    @TableField(exist = false)
    private String statusName;
    /**
     * 年龄
     */
    private Integer age;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 电子邮箱
     */
    private String email;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getClassName() {
        return className;
    }

    public String getStatusName() {
        return statusName;
    }

    @Override
    public String toString() {
        return "TStudent{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", classId=" + classId +
                ", className='" + className + '\'' +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", statusName='" + statusName + '\'' +
                ", age=" + age +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
